﻿using System;
using System.Linq;
using ASPNETVN.PORTAL.Components.Helpers;
using ASPNETVN.PORTAL.Components.UI;
using ASPNETVN.PORTAL.Modules.LINK.Components;

namespace ASPNETVN.PORTAL.Modules.LINK.Controls
{
    public partial class Style3 : ModulePage
    {
        protected string GetEditURL(int itemID)
        {
            return HttpUrlBuilder.BuildAddEditUrl(this.ModuleID, itemID, "AddEditItem");
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                dlLinks.DataSource = Item.SelectCollectionAll(this.ModuleID).OrderBy(x => x.SortOrder);
                dlLinks.DataBind();
            }
        }
    }
}